
/**
 * 课程章节和课时相关请求模块
 */
 import request from '@/utils/request'

// 获取指定课程的章节和课时
export const getSectionAndLesson = (courseId: string | number) => {
    return request({
        method: 'GET',
        url: '/boss/course/section/getSectionAndLesson',
        params: {
            courseId
        }
    })
}

// 获取指定课程的章节和课时
export const saveOrUpdateSection = (data: any) => {
    return request({
        method: 'POST',
        url: '/boss/course/section/saveOrUpdateSection',
        data
    })
}